#include <cstdlib>
#include <cstdio>
void system_pause(void)
{
#ifdef _WIN32
    system("pause");
#else
    puts("Press any key to continue...");
    system("stty raw");
    getchar();
    system("stty cooked");
#endif
}

#include "dispatch_server.h"

int main(int argc, char *argv[])
{
    int a = 1;
    int b = 2;
    //a ^= b ^= a ^= b;

    a = a^b;
    b = b^a;
    a = a^b;    

    a = a+b;
    b = a-b;
    a = a-b;

    base_library::log::logger logger_(
            base_library::log::logger::get_app_path() + "dispatcher");

    dispatch_server server_;
    server_.set_trace_mod(&logger_);
    server_.start_server();

    system_pause();

    server_.stop_server();

    return 0;
}
